style.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. #postView {
  2. padding: 25px 32px 32px 32px;
  3. min-width: 410px;
  4. max-width: 1920px;
  5. margin: 0 auto;
  6. section {
  7. // 제목
  8. &.subject {
  9. font-size: 1.5rem;
  10. font-weight: 600;
  11. margin-bottom: 10px;
  12. }
  13. // 상단
  14. &.attribution {
  15. display: flex;
  16. flex-direction: row;
  17. flex-wrap: nowrap;
  18. align-items: center;
  19. div:first-child {
  20. flex-grow: 0;
  21. padding-right: 20px;
  22. }
  23. div:last-child {
  24. display: grid;
  25. grid-template-columns: auto auto;
  26. grid-template-rows: repeat(2, 1fr);
  27. grid-template-areas: "writer-info post-date"
  28. "post-info functions";
  29. align-items: center;
  30. flex-grow: 1;
  31. column-gap: 0;
  32. row-gap: 10px;
  33. article {
  34. &.writer-thumb {
  35. grid-area: writer-thumb;
  36. > img {
  37. width: 100%;
  38. max-width: 92px;
  39. object-fit: cover;
  40. }
  41. }
  42. &.writer-info {
  43. grid-area: writer-info;
  44. > ul {
  45. li {
  46. &:nth-of-type(2) {
  47. align-self: center;
  48. font-size: 0.875rem;
  49. }
  50. }
  51. }
  52. }
  53. &.post-info {
  54. grid-area: post-info;
  55. }
  56. &.post-date {
  57. grid-area: post-date;
  58. text-align: right;
  59. }
  60. &.functions {
  61. grid-area: functions;
  62. justify-self: flex-end;
  63. }
  64. > ul {
  65. display: flex;
  66. flex-wrap: wrap;
  67. column-gap: 10px;
  68. row-gap: 0;
  69. list-style: none;
  70. li {
  71. position: relative;
  72. // 가운데 점 추가
  73. &::after {
  74. content: '·';
  75. margin-left: 10px;
  76. color: #999;
  77. }
  78. // 마지막 li는 점 숨김
  79. &:last-child::after {
  80. content: '';
  81. margin: 0;
  82. }
  83. a, button {
  84. color: #0D6295;
  85. text-decoration: none;
  86. &:hover {
  87. text-decoration: underline;
  88. color: #c7511f;
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. @media (max-width: 1140px) {
  96. div:last-child {
  97. grid-template-columns: auto 1fr;
  98. grid-template-rows: auto auto auto auto;
  99. grid-template-areas: "writer-thumb writer-info"
  100. "writer-thumb post-info"
  101. "writer-thumb post-date"
  102. "writer-thumb functions";
  103. align-items: center;
  104. grid-auto-rows: auto;
  105. row-gap: 2px;
  106. column-gap: 0;
  107. article {
  108. &.post-date {
  109. text-align: left;
  110. }
  111. &.functions {
  112. justify-self: start;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. &.content {
  119. min-height: 300px;
  120. display: flex;
  121. flex-direction: column;
  122. article {
  123. font-size: 1.063rem;
  124. line-height: 1.25;
  125. // 본문 내용
  126. &:first-of-type {
  127. flex-grow: 1;
  128. // 첨부 파일
  129. section.file-embed {
  130. display: inline-block;
  131. width: max-content;
  132. max-width: 100%;
  133. padding: 5px 40px;
  134. border: 1px solid #ccc;
  135. border-radius: 5px;
  136. background: #f9f9f9;
  137. margin: 5px 0;
  138. box-sizing: border-box;
  139. .file-icon svg {
  140. width: 19px;
  141. height: 19px;
  142. display: inline-block;
  143. vertical-align: sub;
  144. padding-right: 5px;
  145. }
  146. &.image-style-align-left {
  147. margin-left: 0;
  148. margin-right: auto;
  149. }
  150. &.image-style-align-center {
  151. display: block;
  152. margin-left: auto;
  153. margin-right: auto;
  154. }
  155. &.image-style-align-right {
  156. margin-left: auto;
  157. margin-right: 0;
  158. }
  159. &:hover {
  160. background-color: #f0f0f0;
  161. border-color: #c7511f;
  162. cursor: pointer;
  163. }
  164. }
  165. p a {
  166. color: #0D6295;
  167. text-decoration: none;
  168. &:hover,
  169. &:focus {
  170. text-decoration: underline;
  171. color: #c7511f;
  172. }
  173. }
  174. }
  175. // 태그
  176. &:last-of-type {
  177. span {
  178. padding-right: 6px;
  179. a {
  180. color: #0D6295;
  181. text-decoration: none;
  182. &:hover {
  183. text-decoration: underline;
  184. color: #c7511f;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. }
  191. &.controls {
  192. display: flex;
  193. justify-content: space-between;
  194. align-items: center;
  195. gap: 0;
  196. article {
  197. display: flex;
  198. flex-direction: row;
  199. flex-wrap: nowrap;
  200. gap: 7px;
  201. }
  202. }
  203. }
  204. hr {
  205. margin: 14px 0;
  206. }
  207. }
  208. // 인쇄 설정
  209. @media print {
  210. body {
  211. /* 인쇄할 요소만 보이게 */
  212. #main, #container {
  213. visibility: visible;
  214. display: block;
  215. all: unset;
  216. width: 100%;
  217. height: auto;
  218. position: static;
  219. padding: 0;
  220. margin: 0 auto;
  221. overflow: visible;
  222. }
  223. #header, #ticker, #footer, #aside {
  224. display: none;
  225. visibility: hidden;
  226. }
  227. html, body {
  228. width: 100%;
  229. height: auto;
  230. overflow: visible;
  231. }
  232. }
  233. }